# Contributor: John Gebbie <me@johngebbie.com>
# Maintainer: John Gebbie <me@johngebbie.com>
pkgname=sopwith
pkgver=2.3.0
pkgrel=0
pkgdesc="Classic bi-plane shoot-'em up game"
url="https://fragglet.github.io/sdl-sopwith"
arch="all"
license="GPL-2.0-or-later"
makedepends="sdl2-dev"
subpackages="$pkgname-doc"
source="https://github.com/fragglet/sdl-sopwith/releases/download/sdl-sopwith-$pkgver/sdl-sopwith-$pkgver.tar.gz
	select.patch
	"
builddir="$srcdir/sdl-sopwith-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="
be2d63e1a9b2759d1059270ad65e189c905ab5a4b9cdc02ac1434935e7800b27dd7f5842daec2e995f54a00c849fb00f796b814e1376f65f58ac1c58a5b0e0ff  sdl-sopwith-2.3.0.tar.gz
eb67432e23eacec9f53c35da25af4b5ca8018de1be9b40094dd5f98d0614415481df2fbf2f9c22f4b4fc71fd20b838f806f4d1e71b327fb4af670f5cd2a3adc8  select.patch
"
